<template>
	<view class="content_tow" v-if="message.provide_services">
		<view class="service">{{$t('提供服务')}}</view>
		<view class="service_list_1">
			<view class="service_block" v-if="setServe(message.provide_services,'报关')">
				<view class="service_block_bk">
					<image style="width: 60rpx;height: 60rpx;" src="@/static/homePage/ax.png" mode=""></image>
				</view>
				<view class="service_block_test">{{$t('报关服务')}}</view>
			</view>
			<view class="service_block" v-if="setServe(message.provide_services,'清关')">
				<view class="service_block_bk">
					<image style="width: 60rpx;height: 60rpx;" src="@/static/homePage/bx.png" mode=""></image>
				</view>
				<view class="service_block_test">{{$t('清关服务')}}</view>
			</view>
			<view class="service_block" v-if="setServe(message.provide_services,'转关')">
				<view class="service_block_bk">
					<image style="width: 60rpx;height: 60rpx;" src="@/static/homePage/cx.png" mode=""></image>
				</view>
				<view class="service_block_test">{{$t('转关服务')}}</view>
			</view>
		</view>
		<view class="service_list_1">
			<view class="service_block" v-if="setServe(message.provide_services,'运输')">
				<view class="service_block_bk">
					<image style="width: 60rpx;height: 60rpx;" src="@/static/homePage/dx.png" mode=""></image>
				</view>
				<view class="service_block_test">{{$t('运输服务')}}</view>
			</view>
			<view class="service_block" v-if="setServe(message.provide_services,'仓储')">
				<view class="service_block_bk">
					<image style="width: 60rpx;height: 60rpx;" src="@/static/homePage/ex.png" mode=""></image>
				</view>
				<view class="service_block_test">{{$t('仓储服务')}}</view>
			</view>
			<view class="service_block" v-if="setServe(message.provide_services,'装卸')">
				<view class="service_block_bk">
					<image style="width: 60rpx;height: 60rpx;" src="@/static/homePage/fx.png" mode=""></image>
				</view>
				<view class="service_block_test">{{$t('装卸服务')}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props: ['message','lang'],
		data(){
			return{
				
			}
		},
		methods:{
			setServe(str,value){
				if(str){
					const arr = str.split(",");
					const contains = arr.includes(value);
					return contains
				}else{
					return false
				}
			}
		}
	}
</script>

<style scoped>
	.service_list_1{
		width: 100%;
		height: 170rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 24rpx;
	}
	.service_block_test{
		font-weight: 400;
		font-size: 24rpx;
		color: #3D3D3D;
		margin-top: 10rpx;
		text-align: center;
		line-height: 80%
	}
	.service_block_bk{
		width: 100rpx;
		height: 100rpx;
		background: #F7F8FB;
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 8rpx;
	}
	.service_block{
		width: 150rpx;
		height: 164rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.service{
		font-weight: 500;
		font-size: 30rpx;
		color: #3D3D3D;
	}
	.content_tow{
		width: 690rpx;
		height: 466rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin-top: 12rpx;
		padding: 34rpx 30rpx 24rpx 30rpx;
	}
</style>